var server = require('http');
var url = require('url')

server.createServer(function(request,response){
    response.writeHead(200,{"Content-Type":'text/plain'});
    //response.write('Hi Lord wcs');
    
    p = url.parse(request.url,true).query;
    for(var key in p){
        console.log(key+':'+p[key])
        response.write(key+':'+p[key])
        response.write('\n')
    }
    response.end('');
}).listen(9989);